package com.stu.service;

import com.vmware.vim25.mo.HostSystem;
import com.vmware.vim25.mo.ServiceInstance;
import com.vmware.vim25.mo.VirtualMachine;

import java.net.MalformedURLException;
import java.rmi.RemoteException;
import java.util.List;

/**
 * @projectName: learn_used_code
 * @packageName: com.stu.service.impl
 * @className: com.stu.service.impl-> ServiceInstanceBase
 * @createDate: 2022-03-22 18:19
 * @author: ZhangSheng
 * @version: 1.0
 * @description:
 */
public interface ServiceInstanceBase {


    ServiceInstance connection(String ipAddress,int port,String username,String password) throws MalformedURLException, RemoteException;


    List<HostSystem> getHostSystemList(ServiceInstance serviceInstance) throws RemoteException;


    List<VirtualMachine> getVirtualMachineList(ServiceInstance serviceInstance) throws RemoteException;


    VirtualMachine getSingleVm(ServiceInstance serviceInstance,String morId) throws RemoteException;

}
